package com.mercury.share.entity.vo;

import com.baomidou.mybatisplus.annotation.*;
import com.mercury.share.entity.ShareImgs;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;
import java.util.List;

/**
 * @author 童
 * @createTime 2021/11/22 9:54
 * @projectName coffee-parent
 * @className ShareInfo.java
 * @description TODO
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="分享的详细文章", description="")
public class ShareInfo {

    @ApiModelProperty(value = "share ID")
    private Integer id;

    @ApiModelProperty(value = "用户id")
    private String userId;

    @ApiModelProperty(value = "用户名称")
    private String userName;

    @ApiModelProperty(value = "用户头像")
    private String UserImg;

    @ApiModelProperty(value = "分享的内容")
    private String shareContent;

    @ApiModelProperty(value = "创建的时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "图片列表")
    private List<ShareImgs> picList;

    @ApiModelProperty(value = "评论的数量")
    private int count;

}
